package com.xiyi.shouxin.view.pojo;

import com.xiyi.shouxin.entity.user.Question;

import lombok.Getter;

@Getter
public class QuestionView extends Question {

    public QuestionView(Question question) {
        if (question==null) {
            return;
        }
        this.setId(question.getId());
        this.setTitle(question.getTitle());
        this.setType(question.getType());
        this.setParams(question.getParams());
        this.setDesc(question.getDesc());
        this.setStatus(question.getStatus());
    }
}
